-- msg_bbs_comments
-- Create by cheny3
-- 获取到BBS评论

return function(lpc)
    local records     = lpc.records;
    local commentType = lpc.type;
    local class       = lpc.class;

    for _, info in pairs(records) do
        -- base64解码
        info["content"] = MyBase64.decode(info["content"]);
    end

    -- 获取数据到达
    if class == "top" then
        CommentM.receiveTopPraiseComments(commentType, records);
    elseif class == "lastest" then
        CommentM.receiveLastestComments(commentType, records);
    end
end
